package com.leo.vo;

public class AccessTokenResult {
	String status="",
	accessToken="",
	errorResult="";
	
	static public AccessTokenResult accountError, serverError;
	static {
		accountError = new AccessTokenResult();
		accountError.setErrorResult("账户验证失败,请确认您的账户正确，并且有接口使用权限");
		accountError.setStatus("0");
		serverError = new AccessTokenResult();
		serverError.setErrorResult("服务器错误");
		serverError.setStatus("-1");
	}
	
	static public AccessTokenResult success(String accessToken){
		AccessTokenResult result = new AccessTokenResult();
		result.setStatus("1"); 
		result.setAccessToken(accessToken);
		return result;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getErrorResult() {
		return errorResult;
	}

	public void setErrorResult(String errorResult) {
		this.errorResult = errorResult;
	}
}
